package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.observer;

public class ConcreteSubject extends Subject {
    private int state;
    public int getState(){
        return state;
    }
    public void setState(int state){
        this.state=state;
//        目标对象值发生了变化，通知所有的观察者
        this.notifyAllObservers();
    }
}
